// 按钮点击事件
const btnClick = (uid, type, name) => {
    // 判断传入的参数是否为删除或者修改 0：增加 1：修改 2：删除
    if (type === 0) {
        window.location.href = '/employee/insert';
    } else if (type === 1) {
        window.location.href = '/employee/update/' + uid;
        // alert('您点击了修改' + uid);
    } else {
        if (confirm("您是否确认删除员工" + name + "的信息?")) {
            window.location.href = '/employee/delete/' + uid;
            // alert('您点击了删除' + uid);
        }
    }
}
